package pickbook.model;

import javax.annotation.Resource;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;

//관리자 DB 접근 관련 Database Access Object implements 후 정의
@Repository
public class AdminDAOImpl implements AdminDAO {
	
	@Resource(name="sqlSessionTemplate")
	private SqlSessionTemplate sqlSessionTemplate;
		
	/**
	 * method : loginAdmin
	 * comment : 관리자 로그인 메서드
	 * 
	 * @return
	 * 
	 * @author 제형규
	 * @date 2014-07-04
	 */
	@Override
	public AdminVO loginAdmin(AdminVO avo) {
		char temp=1;
		return sqlSessionTemplate.selectOne("admin.loginAdmin",avo);
	}
	
}
